package com.guochenglang.www.util;

import com.guochenglang.www.pojo.annotate.Table;

/**
 * 获得pojo表名的工具类
 *
 * @author GuoChenglang
 */
public class GetTable {
    public static String getTable(Class<?> pojoClass) {
        Table table = pojoClass.getAnnotation(Table.class);
        if (table != null) {
            return table.value();
        } else {
            return null;
        }
    }
}
